package com.hanj.myserver;

import cn.hutool.core.io.FileUtil;
import com.hanj.myserver.utils.Constant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author hanj.cn@outlook.com
 */
@SpringBootApplication
public class MyServerApplication {

    public static void main(String[] args) {

        // 创建配置文件
        if (!FileUtil.exist(Constant.SETTING_FILEPATH)) {
            FileUtil.touch(Constant.SETTING_FILEPATH);
        }

        SpringApplication.run(MyServerApplication.class, args);

    }

}
